package cn.sciento.boot.tenant.aspect.aop;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;

/**

 */
public class TenantCreateAdvisor extends AbstractPointcutAdvisor {
  private TenantCreateAdvice tenantCreateAdvice;
  
  private TenantCreatePointcut tenantCreatePointcut;
  
  public TenantCreateAdvisor(TenantCreateAdvice tenantCreateAdvice, TenantCreatePointcut tenantCreatePointcut) {
    this.tenantCreateAdvice = tenantCreateAdvice;
    this.tenantCreatePointcut = tenantCreatePointcut;
  }
  
  @Override
  public Pointcut getPointcut() {
    return this.tenantCreatePointcut;
  }
  
  @Override
  public Advice getAdvice() {
    return this.tenantCreateAdvice;
  }
}
